﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;

namespace ClickrDesktop.Managers
{
    public class LogManager
    {
        private static Object _sync = new Object();
        public static void EnterInLogFile(String str)
        {
            try
            {
                using (StreamWriter writer = new StreamWriter(System.Windows.Forms.Application.StartupPath + @"/Log.txt", true))
                {
                    writer.WriteLine("======================[ " + DateTime.Now.ToString() + " ]=======================");
                    writer.WriteLine(str);
                    writer.Close();
                }
            }
            catch (Exception ex) { }
        }
    }
}
